#ifndef HTTPD_MODE_FLOWER_H
#define HTTPD_MODE_FLOWER_H

struct flower
{
    int number;
    char name[64];
    int amount;
    float price;
    int category;
    char imageurl[256];
    char intro[1024];
};

extern int get_flower_number(const struct flower *const f);
extern const char *get_flower_name(const struct flower *const f);
extern int get_flower_amount(const struct flower *const f);
extern float get_flower_price(const struct flower *const f);
extern int get_flower_category(const struct flower *const f);
extern const char *get_flower_imageurl(const struct flower *const f);
extern const char *get_flower_intro(const struct flower *const f);

extern void set_flower_number(struct flower *f, int number);
extern void set_flower_name(struct flower *f, char *name);
extern void set_flower_amount(struct flower *f, int amount);
extern void set_flower_price(struct flower *f, float price);
extern void set_flower_category(struct flower *f, int category);
extern void set_flower_imageurl(struct flower *f, char *imageurl);
extern void set_flower_intro(struct flower *f, char *intro);

#endif  /* HTTPD_MODE_FLOWER_H */
